package sctu.edu.java.year2016.team03.liyouhong.day20160605.chapter11_1;

/**
 * Created by Administrator on 2016/6/5 0005.
 *
 */
public class Student {
   public void speak(int m)throws MyException{
       if(m>1000){
           throw new MyException("输入的数超出范围");
       }
       else{
           System.out.println("输入的数为"+m);
       }
   }

}
